<?php echo '<?xml version="1.0" encoding="utf-8"?>'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html >
<head>
    <!-- Start: Meta Tags -->
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <!-- End: Meta Tags -->

    <!-- Title -->
    <title>Areal</title>

    <!-- Start: Link Tags -->
    <link rel="shortcut icon" href="<?= '/img/favicon.png' ?>" type="image/x-icon" />
    <link rel="stylesheet" type="text/css" href="<?= ('/css/admin.css'); ?>" />
<?php
//$dir=new DirectoryIterator(APPLICATION_PATH . 'public_html/css/ui');
//$a = array();
//foreach ($dir as $d)if( ! in_array($d, array(".",'..','.svn'))) $a[]=(string)$d;
//shuffle($a);
$a = array('start');
?>

    <link rel="stylesheet" type="text/css" href="<?= ('/css/ui/'.$a[0].'/jquery-ui-1.7.1.custom.css'); ?>" />
    <script type="text/javascript" src="<?= '/js/jquery-1.3.2.min.js' ?>"></script>
    <script type="text/javascript" src="<?= '/js/jquery-ui-1.7.1.custom.min.js' ?>"></script>
    <script type="text/javascript" src="<?= '/js/admin.js' ?>"></script>
    <?= $this->headLink() . "\n"; ?>
    <!-- End: Link Tags -->

    <!-- Start: Styles -->
    <?= $this->headStyle() . "\n"; ?>
    <!-- End: Styles -->
</head>
<body>

<div id="wrap">
    <div id="flash-container">
    <?php ?>
        <?php if ($this->flashMessenger()->hasCurrentMessages()):?>
            <div class ="ui-state-error ui-widget ui-corner-all"> <?= $this->htmlList($this->flashMessenger()->getCurrentMessages()); ?></div>
        <?php elseif ($this->flashMessenger()->hasMessages()):?>
            <div class ="ui-state-highlight ui-widget ui-corner-all"> <?= $this->htmlList($this->flashMessenger()->getMessages()); ?></div>
        <? endif; ?>
    </div>
    <div id="content" class="clearfix">
            <?= $this->layout()->content . "\n"; ?>
    </div>
</div><!-- wrap -->
</body>
</html>